package com.hjq.mallsearch.vo;

import com.hjq.common.entity.es.SkuEsModel;
import lombok.Data;
import org.checkerframework.checker.units.qual.A;

import java.util.ArrayList;
import java.util.List;

/**
 * @auther HJQ
 */
@Data
public class SearchResponseVO {
    private List<SkuEsModel> products; //查询到的商品信息
    private Integer pageNum;
    private Long total;
    private Integer totalPages;//总页码
    private List<BrandVO> brands;//当前查询到结果所有涉及的品牌
    private List<AttrVO> attrs;//当前查询到结果所有涉及的属性
    private List<CatalogVO> catalogs;//当前查询到结果所有涉及的分类
    private List<Integer> pageNavs;
    private List<NavVO> navs=new ArrayList<>();
    private List<Long> attrIds =new ArrayList<>();

    //面包屑导航
    @Data
    public  static class NavVO{
        private String navName;
        private String navValue;//ok
        private String link;//ok
    }


    @Data
    public  static class BrandVO{
        private Long brandId;
        private String brandName;//ok
        private String brandImg;//ok
    }
    @Data
    public  static class CatalogVO {
        private Long catalogId;
        private String catalogName;
    }
    @Data
    public  static class AttrVO{
        private Long attrId;
        private String attrName;//属性名字
        private List<String> attrValue;//ok
    }


}
